package org.huntaway.dao.impl;

import java.util.Date;
import java.util.List;

import org.huntaway.dao.BaseDAO;
import org.huntaway.entity.impl.CommonEntity;

public class CommonDAO<T extends CommonEntity> implements BaseDAO<T> {
	private Date getNow(){
		return new Date();
	}
	public void addEntity(T obj) {
		obj.setInsertTime(getNow());		
	}

	public void editEntity(T obj) {
		obj.setUpdateTime(getNow());	
		
	}

	public List<T> queryEntity(T obj) {
		// TODO Auto-generated method stub
		return null;
	}

	public void delEntity(T obj) {
		// TODO Auto-generated method stub
		
	}

	
}
